package com.txsj.scan.view;

import com.txsj.scan.base.IView;
import com.txsj.scan.bean.EpcInfo;
import com.txsj.scan.bean.GoodsClassify;
import com.txsj.scan.bean.GoodsInfo;
import com.txsj.scan.bean.UpdateBean;

import java.util.List;

/**
 * @Created by WangChuangJun on 2018/11/22
 * @Describe
 */
public interface IGoodsListView extends IView {
    void onLoading();

    void onError(String msg);
    void onClassifySuccess(List<GoodsClassify> data);

    void onGoodsInfoListSuccess(List<GoodsInfo> data);
    void onLoadMoreError(String msg);
    void onLoadError(String msg);
    void onLoadMoreEnd(String msg);
    void onEmpty(String msg);

    void onLoadCacheSuccess();//缓存标签商品信息成功
    void onLoadCacheError(String msg);//缓存标签商品信息失败

    void onBarCodeLoadSuccess(GoodsInfo data);//扫条码返回的商品信息
    void onQrCodeLoadSuccess(EpcInfo data);//扫二维码返回的标签信息

    void onForceUpdate(boolean isForceUpdate, UpdateBean data);//是否强制更新
    void noUpdate();//无需更新
}
